import Editor from "../editor"

interface IOperation {
    apply(editor: Editor): void
    inverse(editor: Editor): void

}

export abstract class Operation implements IOperation {
    abstract apply(editor: Editor): void
    /** 反转操作, 用于撤销重做 */
    abstract inverse(editor: Editor): void

    public abstract reverse(): Operation[];

}

export default Operation